package com.csun.dsms.mapper;

import com.csun.dsms.model.domain.YsTeacher;
import com.csun.dsms.model.dto.ys.YsBindClasses;
import com.csun.dsms.model.dto.ys.YsQueryDto;
import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

public interface YsTeacherMapper extends Mapper<YsTeacher> {

    /**
     * 根据学校查询老师
     * @param ysQueryDto
     * @return
     */
    List<YsTeacher> queryListWithPage(YsQueryDto ysQueryDto);

    int unBindTeacherClass(YsBindClasses ysBindClasses);

    int bindTeacherClass(Integer teacherId,Integer classId);
}